<?php
require_once(getabspath("classes/cipherer.php"));
$tdatausuarios = array();
	$tdatausuarios[".NumberOfChars"] = 80; 
	$tdatausuarios[".ShortName"] = "usuarios";
	$tdatausuarios[".OwnerID"] = "";
	$tdatausuarios[".OriginalTable"] = "usuarios";

//	field labels
$fieldLabelsusuarios = array();
if(mlang_getcurrentlang()=="Portuguese(Brazil)")
{
	$fieldLabelsusuarios["Portuguese(Brazil)"] = array();
	$fieldToolTipsusuarios["Portuguese(Brazil)"] = array();
	$fieldLabelsusuarios["Portuguese(Brazil)"]["pk_usuario"] = "Pk Usuario";
	$fieldToolTipsusuarios["Portuguese(Brazil)"]["pk_usuario"] = "";
	$fieldLabelsusuarios["Portuguese(Brazil)"]["tx_cpf"] = "CPF";
	$fieldToolTipsusuarios["Portuguese(Brazil)"]["tx_cpf"] = "";
	$fieldLabelsusuarios["Portuguese(Brazil)"]["tx_nome"] = "NOME";
	$fieldToolTipsusuarios["Portuguese(Brazil)"]["tx_nome"] = "";
	$fieldLabelsusuarios["Portuguese(Brazil)"]["tx_senha"] = "SENHA";
	$fieldToolTipsusuarios["Portuguese(Brazil)"]["tx_senha"] = "";
	$fieldLabelsusuarios["Portuguese(Brazil)"]["tx_perfil"] = "PERFIL";
	$fieldToolTipsusuarios["Portuguese(Brazil)"]["tx_perfil"] = "";
	$fieldLabelsusuarios["Portuguese(Brazil)"]["tx_email"] = "EMAIL";
	$fieldToolTipsusuarios["Portuguese(Brazil)"]["tx_email"] = "";
	if (count($fieldToolTipsusuarios["Portuguese(Brazil)"]))
		$tdatausuarios[".isUseToolTips"] = true;
}
if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsusuarios["English"] = array();
	$fieldToolTipsusuarios["English"] = array();
	$fieldLabelsusuarios["English"]["pk_usuario"] = "Pk Usuario";
	$fieldToolTipsusuarios["English"]["pk_usuario"] = "";
	$fieldLabelsusuarios["English"]["tx_cpf"] = "Tx Cpf";
	$fieldToolTipsusuarios["English"]["tx_cpf"] = "";
	$fieldLabelsusuarios["English"]["tx_nome"] = "Tx Nome";
	$fieldToolTipsusuarios["English"]["tx_nome"] = "";
	$fieldLabelsusuarios["English"]["tx_senha"] = "Tx Senha";
	$fieldToolTipsusuarios["English"]["tx_senha"] = "";
	$fieldLabelsusuarios["English"]["tx_perfil"] = "Tx Perfil";
	$fieldToolTipsusuarios["English"]["tx_perfil"] = "";
	$fieldLabelsusuarios["English"]["tx_email"] = "Tx Email";
	$fieldToolTipsusuarios["English"]["tx_email"] = "";
	if (count($fieldToolTipsusuarios["English"]))
		$tdatausuarios[".isUseToolTips"] = true;
}
if(mlang_getcurrentlang()=="German")
{
	$fieldLabelsusuarios["German"] = array();
	$fieldToolTipsusuarios["German"] = array();
	$fieldLabelsusuarios["German"]["pk_usuario"] = "Pk Usuario";
	$fieldToolTipsusuarios["German"]["pk_usuario"] = "";
	$fieldLabelsusuarios["German"]["tx_cpf"] = "Tx Cpf";
	$fieldToolTipsusuarios["German"]["tx_cpf"] = "";
	$fieldLabelsusuarios["German"]["tx_nome"] = "Tx Nome";
	$fieldToolTipsusuarios["German"]["tx_nome"] = "";
	$fieldLabelsusuarios["German"]["tx_senha"] = "Tx Senha";
	$fieldToolTipsusuarios["German"]["tx_senha"] = "";
	$fieldLabelsusuarios["German"]["tx_perfil"] = "Tx Perfil";
	$fieldToolTipsusuarios["German"]["tx_perfil"] = "";
	$fieldLabelsusuarios["German"]["tx_email"] = "Tx Email";
	$fieldToolTipsusuarios["German"]["tx_email"] = "";
	if (count($fieldToolTipsusuarios["German"]))
		$tdatausuarios[".isUseToolTips"] = true;
}
	
	
	$tdatausuarios[".NCSearch"] = true;



$tdatausuarios[".shortTableName"] = "usuarios";
$tdatausuarios[".nSecOptions"] = 0;
$tdatausuarios[".recsPerRowList"] = 1;
$tdatausuarios[".mainTableOwnerID"] = "";
$tdatausuarios[".moveNext"] = 1;
$tdatausuarios[".nType"] = 0;

$tdatausuarios[".strOriginalTableName"] = "usuarios";




$tdatausuarios[".showAddInPopup"] = false;

$tdatausuarios[".showEditInPopup"] = false;

$tdatausuarios[".showViewInPopup"] = false;

$tdatausuarios[".fieldsForRegister"] = array();

$tdatausuarios[".listAjax"] = false;

	$tdatausuarios[".audit"] = false;

	$tdatausuarios[".locking"] = false;

$tdatausuarios[".listIcons"] = true;
$tdatausuarios[".edit"] = true;
$tdatausuarios[".view"] = true;

$tdatausuarios[".exportTo"] = true;

$tdatausuarios[".printFriendly"] = true;

$tdatausuarios[".delete"] = true;

$tdatausuarios[".showSimpleSearchOptions"] = false;

$tdatausuarios[".showSearchPanel"] = true;

if (isMobile())
	$tdatausuarios[".isUseAjaxSuggest"] = false;
else 
	$tdatausuarios[".isUseAjaxSuggest"] = true;

$tdatausuarios[".rowHighlite"] = true;

// button handlers file names

$tdatausuarios[".addPageEvents"] = false;

// use timepicker for search panel
$tdatausuarios[".isUseTimeForSearch"] = false;



$tdatausuarios[".useDetailsPreview"] = true;

$tdatausuarios[".allSearchFields"] = array();


$tdatausuarios[".googleLikeFields"][] = "pk_usuario";
$tdatausuarios[".googleLikeFields"][] = "tx_cpf";
$tdatausuarios[".googleLikeFields"][] = "tx_nome";
$tdatausuarios[".googleLikeFields"][] = "tx_senha";
$tdatausuarios[".googleLikeFields"][] = "tx_perfil";
$tdatausuarios[".googleLikeFields"][] = "tx_email";



$tdatausuarios[".isTableType"] = "list";

	



// Access doesn't support subqueries from the same table as main
			


$tdatausuarios[".pageSize"] = 20;

$tstrOrderBy = "";
if(strlen($tstrOrderBy) && strtolower(substr($tstrOrderBy,0,8))!="order by")
	$tstrOrderBy = "order by ".$tstrOrderBy;
$tdatausuarios[".strOrderBy"] = $tstrOrderBy;

$tdatausuarios[".orderindexes"] = array();

$tdatausuarios[".sqlHead"] = "SELECT pk_usuario,  tx_cpf,  tx_nome,  tx_senha,  tx_perfil,  tx_email";
$tdatausuarios[".sqlFrom"] = "FROM usuarios";
$tdatausuarios[".sqlWhereExpr"] = "";
$tdatausuarios[".sqlTail"] = "";




//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatausuarios[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatausuarios[".arrGroupsPerPage"] = $arrGPP;

$tableKeysusuarios = array();
$tableKeysusuarios[] = "pk_usuario";
$tdatausuarios[".Keys"] = $tableKeysusuarios;

$tdatausuarios[".listFields"] = array();
$tdatausuarios[".listFields"][] = "tx_cpf";
$tdatausuarios[".listFields"][] = "tx_nome";
$tdatausuarios[".listFields"][] = "tx_perfil";
$tdatausuarios[".listFields"][] = "tx_email";

$tdatausuarios[".viewFields"] = array();
$tdatausuarios[".viewFields"][] = "tx_cpf";
$tdatausuarios[".viewFields"][] = "tx_nome";
$tdatausuarios[".viewFields"][] = "tx_perfil";
$tdatausuarios[".viewFields"][] = "tx_email";

$tdatausuarios[".addFields"] = array();
$tdatausuarios[".addFields"][] = "tx_cpf";
$tdatausuarios[".addFields"][] = "tx_nome";
$tdatausuarios[".addFields"][] = "tx_senha";
$tdatausuarios[".addFields"][] = "tx_perfil";
$tdatausuarios[".addFields"][] = "tx_email";

$tdatausuarios[".inlineAddFields"] = array();

$tdatausuarios[".editFields"] = array();
$tdatausuarios[".editFields"][] = "tx_cpf";
$tdatausuarios[".editFields"][] = "tx_nome";
$tdatausuarios[".editFields"][] = "tx_senha";
$tdatausuarios[".editFields"][] = "tx_perfil";
$tdatausuarios[".editFields"][] = "tx_email";

$tdatausuarios[".inlineEditFields"] = array();

$tdatausuarios[".exportFields"] = array();
$tdatausuarios[".exportFields"][] = "tx_cpf";
$tdatausuarios[".exportFields"][] = "tx_nome";
$tdatausuarios[".exportFields"][] = "tx_perfil";
$tdatausuarios[".exportFields"][] = "tx_email";

$tdatausuarios[".printFields"] = array();
$tdatausuarios[".printFields"][] = "tx_cpf";
$tdatausuarios[".printFields"][] = "tx_nome";
$tdatausuarios[".printFields"][] = "tx_perfil";
$tdatausuarios[".printFields"][] = "tx_email";

//	pk_usuario
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 1;
	$fdata["strName"] = "pk_usuario";
	$fdata["GoodName"] = "pk_usuario";
	$fdata["ownerTable"] = "usuarios";
	$fdata["Label"] = GetFieldLabel("usuarios","pk_usuario"); 
	$fdata["FieldType"] = 3;
	
		$fdata["AutoInc"] = true;
	
		
		
		
		
		
		
		
		
		
		
		$fdata["strField"] = "pk_usuario"; 
		$fdata["FullName"] = "pk_usuario";
	
		
		
				
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Text field");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			
		
//	Begin validation
	$edata["validateAs"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatausuarios["pk_usuario"] = $fdata;
//	tx_cpf
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "tx_cpf";
	$fdata["GoodName"] = "tx_cpf";
	$fdata["ownerTable"] = "usuarios";
	$fdata["Label"] = GetFieldLabel("usuarios","tx_cpf"); 
	$fdata["FieldType"] = 200;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		
		$fdata["bEditPage"] = true; 
	
		
		$fdata["bViewPage"] = true; 
	
		
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "tx_cpf"; 
		$fdata["FullName"] = "tx_cpf";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Text field");
	
		
		
		$edata["strEditMask"] = "999.999.999-99"; 

//	Begin Lookup settings
	//	End Lookup Settings

		
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			
		
//	Begin validation
	$edata["validateAs"] = array();
		
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatausuarios["tx_cpf"] = $fdata;
//	tx_nome
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "tx_nome";
	$fdata["GoodName"] = "tx_nome";
	$fdata["ownerTable"] = "usuarios";
	$fdata["Label"] = GetFieldLabel("usuarios","tx_nome"); 
	$fdata["FieldType"] = 200;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		
		$fdata["bEditPage"] = true; 
	
		
		$fdata["bViewPage"] = true; 
	
		
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "tx_nome"; 
		$fdata["FullName"] = "tx_nome";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Text field");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			
		$edata["inputStyle"] = " width:50px;";
	$edata["controlWidth"] = 50;
	
//	Begin validation
	$edata["validateAs"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatausuarios["tx_nome"] = $fdata;
//	tx_senha
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "tx_senha";
	$fdata["GoodName"] = "tx_senha";
	$fdata["ownerTable"] = "usuarios";
	$fdata["Label"] = GetFieldLabel("usuarios","tx_senha"); 
	$fdata["FieldType"] = 200;
	
		
		
		
		$fdata["bAddPage"] = true; 
	
		
		$fdata["bEditPage"] = true; 
	
		
		
		
		
		
		$fdata["strField"] = "tx_senha"; 
		$fdata["FullName"] = "tx_senha";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Password");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			
		
//	Begin validation
	$edata["validateAs"] = array();
		
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatausuarios["tx_senha"] = $fdata;
//	tx_perfil
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "tx_perfil";
	$fdata["GoodName"] = "tx_perfil";
	$fdata["ownerTable"] = "usuarios";
	$fdata["Label"] = GetFieldLabel("usuarios","tx_perfil"); 
	$fdata["FieldType"] = 200;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		
		$fdata["bEditPage"] = true; 
	
		
		$fdata["bViewPage"] = true; 
	
		
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "tx_perfil"; 
		$fdata["FullName"] = "tx_perfil";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Lookup wizard");
	
		
		
	
//	Begin Lookup settings
					$edata["LookupType"] = 0;
	$edata["freeInput"] = 0;
	$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
				
		
		
		$edata["LookupValues"] = array();
	$edata["LookupValues"][] = "ADMINISTRADOR";
	$edata["LookupValues"][] = "COORDENADOR";
	$edata["LookupValues"][] = "PONTOFOCAL";
	$edata["LookupValues"][] = "USUARIO";

	//	End Lookup Settings

		
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
		
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatausuarios["tx_perfil"] = $fdata;
//	tx_email
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "tx_email";
	$fdata["GoodName"] = "tx_email";
	$fdata["ownerTable"] = "usuarios";
	$fdata["Label"] = GetFieldLabel("usuarios","tx_email"); 
	$fdata["FieldType"] = 200;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		
		$fdata["bEditPage"] = true; 
	
		
		$fdata["bViewPage"] = true; 
	
		
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "tx_email"; 
		$fdata["FullName"] = "tx_email";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["view"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Text field");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			
		
//	Begin validation
	$edata["validateAs"] = array();
		
	//	End validation
	
		
				
		$fdata["EditFormats"]["edit"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatausuarios["tx_email"] = $fdata;

	
$tables_data["usuarios"]=&$tdatausuarios;
$field_labels["usuarios"] = &$fieldLabelsusuarios;
$fieldToolTips["usuarios"] = &$fieldToolTipsusuarios;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["usuarios"] = array();
$dIndex = 1-1;
			$strOriginalDetailsTable="objetivo";
	$detailsParam["dDataSourceTable"]="objetivo";
	$detailsParam["dOriginalTable"]=$strOriginalDetailsTable;
	$detailsParam["dShortTable"]="objetivo";
	$detailsParam["masterKeys"]=array();
	$detailsParam["detailKeys"]=array();
	$detailsParam["dispChildCount"]= "0";
	$detailsParam["hideChild"]="0";
	$detailsParam["previewOnList"]= 2;
	$detailsParam["previewOnAdd"]= 0;
	$detailsParam["previewOnEdit"]= 0;
	$detailsParam["previewOnView"]= 0;
		
	$detailsTablesData["usuarios"][$dIndex] = $detailsParam;
	
		
		$detailsTablesData["usuarios"][$dIndex]["masterKeys"][]="pk_usuario";
		$detailsTablesData["usuarios"][$dIndex]["detailKeys"][]="fk_usuario";

$dIndex = 2-1;
			$strOriginalDetailsTable="objetivogeral";
	$detailsParam["dDataSourceTable"]="objetivogeral";
	$detailsParam["dOriginalTable"]=$strOriginalDetailsTable;
	$detailsParam["dShortTable"]="objetivogeral";
	$detailsParam["masterKeys"]=array();
	$detailsParam["detailKeys"]=array();
	$detailsParam["dispChildCount"]= "0";
	$detailsParam["hideChild"]="0";
	$detailsParam["previewOnList"]= 2;
	$detailsParam["previewOnAdd"]= 0;
	$detailsParam["previewOnEdit"]= 0;
	$detailsParam["previewOnView"]= 0;
		
	$detailsTablesData["usuarios"][$dIndex] = $detailsParam;
	
		
		$detailsTablesData["usuarios"][$dIndex]["masterKeys"][]="pk_usuario";
		$detailsTablesData["usuarios"][$dIndex]["detailKeys"][]="fk_usuario";

$dIndex = 3-1;
			$strOriginalDetailsTable="pct";
	$detailsParam["dDataSourceTable"]="pct";
	$detailsParam["dOriginalTable"]=$strOriginalDetailsTable;
	$detailsParam["dShortTable"]="pct";
	$detailsParam["masterKeys"]=array();
	$detailsParam["detailKeys"]=array();
	$detailsParam["dispChildCount"]= "0";
	$detailsParam["hideChild"]="0";
	$detailsParam["previewOnList"]= 1;
	$detailsParam["previewOnAdd"]= 0;
	$detailsParam["previewOnEdit"]= 0;
	$detailsParam["previewOnView"]= 0;
		
	$detailsTablesData["usuarios"][$dIndex] = $detailsParam;
	
		
		$detailsTablesData["usuarios"][$dIndex]["masterKeys"][]="pk_usuario";
		$detailsTablesData["usuarios"][$dIndex]["detailKeys"][]="fk_usuario";

	
// tables which are master tables for current table (detail)
$masterTablesData["usuarios"] = array();

// -----------------end  prepare master-details data arrays ------------------------------//

require_once(getabspath("classes/sql.php"));










function createSqlQuery_usuarios()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "pk_usuario,  tx_cpf,  tx_nome,  tx_senha,  tx_perfil,  tx_email";
$proto0["m_strFrom"] = "FROM usuarios";
$proto0["m_strWhere"] = "";
$proto0["m_strOrderBy"] = "";
$proto0["m_strTail"] = "";
$proto0["cipherer"] = null;
$proto1=array();
$proto1["m_sql"] = "";
$proto1["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto1["m_column"]=$obj;
$proto1["m_contained"] = array();
$proto1["m_strCase"] = "";
$proto1["m_havingmode"] = "0";
$proto1["m_inBrackets"] = "0";
$proto1["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto1);

$proto0["m_where"] = $obj;
$proto3=array();
$proto3["m_sql"] = "";
$proto3["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto3["m_column"]=$obj;
$proto3["m_contained"] = array();
$proto3["m_strCase"] = "";
$proto3["m_havingmode"] = "0";
$proto3["m_inBrackets"] = "0";
$proto3["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto3);

$proto0["m_having"] = $obj;
$proto0["m_fieldlist"] = array();
						$proto5=array();
			$obj = new SQLField(array(
	"m_strName" => "pk_usuario",
	"m_strTable" => "usuarios"
));

$proto5["m_expr"]=$obj;
$proto5["m_alias"] = "";
$obj = new SQLFieldListItem($proto5);

$proto0["m_fieldlist"][]=$obj;
						$proto7=array();
			$obj = new SQLField(array(
	"m_strName" => "tx_cpf",
	"m_strTable" => "usuarios"
));

$proto7["m_expr"]=$obj;
$proto7["m_alias"] = "";
$obj = new SQLFieldListItem($proto7);

$proto0["m_fieldlist"][]=$obj;
						$proto9=array();
			$obj = new SQLField(array(
	"m_strName" => "tx_nome",
	"m_strTable" => "usuarios"
));

$proto9["m_expr"]=$obj;
$proto9["m_alias"] = "";
$obj = new SQLFieldListItem($proto9);

$proto0["m_fieldlist"][]=$obj;
						$proto11=array();
			$obj = new SQLField(array(
	"m_strName" => "tx_senha",
	"m_strTable" => "usuarios"
));

$proto11["m_expr"]=$obj;
$proto11["m_alias"] = "";
$obj = new SQLFieldListItem($proto11);

$proto0["m_fieldlist"][]=$obj;
						$proto13=array();
			$obj = new SQLField(array(
	"m_strName" => "tx_perfil",
	"m_strTable" => "usuarios"
));

$proto13["m_expr"]=$obj;
$proto13["m_alias"] = "";
$obj = new SQLFieldListItem($proto13);

$proto0["m_fieldlist"][]=$obj;
						$proto15=array();
			$obj = new SQLField(array(
	"m_strName" => "tx_email",
	"m_strTable" => "usuarios"
));

$proto15["m_expr"]=$obj;
$proto15["m_alias"] = "";
$obj = new SQLFieldListItem($proto15);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto17=array();
$proto17["m_link"] = "SQLL_MAIN";
			$proto18=array();
$proto18["m_strName"] = "usuarios";
$proto18["m_columns"] = array();
$proto18["m_columns"][] = "pk_usuario";
$proto18["m_columns"][] = "tx_cpf";
$proto18["m_columns"][] = "tx_nome";
$proto18["m_columns"][] = "tx_senha";
$proto18["m_columns"][] = "tx_perfil";
$proto18["m_columns"][] = "tx_email";
$obj = new SQLTable($proto18);

$proto17["m_table"] = $obj;
$proto17["m_alias"] = "";
$proto19=array();
$proto19["m_sql"] = "";
$proto19["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto19["m_column"]=$obj;
$proto19["m_contained"] = array();
$proto19["m_strCase"] = "";
$proto19["m_havingmode"] = "0";
$proto19["m_inBrackets"] = "0";
$proto19["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto19);

$proto17["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto17);

$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
$proto0["m_orderby"] = array();
$obj = new SQLQuery($proto0);

	return $obj;
}
$queryData_usuarios = createSqlQuery_usuarios();
						$tdatausuarios[".sqlquery"] = $queryData_usuarios;
	
if(isset($tdatausuarios["field2"])){
	$tdatausuarios["field2"]["LookupTable"] = "carscars_view";
	$tdatausuarios["field2"]["LookupOrderBy"] = "name";
	$tdatausuarios["field2"]["LookupType"] = 4;
	$tdatausuarios["field2"]["LinkField"] = "email";
	$tdatausuarios["field2"]["DisplayField"] = "name";
	$tdatausuarios[".hasCustomViewField"] = true;
}

$tableEvents["usuarios"] = new eventsBase;
$tdatausuarios[".hasEvents"] = false;

$cipherer = new RunnerCipherer("usuarios");

?>